function load() {
	var params = 1;
	$.ajax({
		url :Server + "/app/inf/list",
		type : "POST",
		data:{
			"offset" : 0,
			"limit" : 10,
			"id" : $("#inidin").val()

		},
		success : function(data) {
			var rowsList = data.rows;
			var html = "";
			var pattern='<tr>\
				<td>#0</td>\
				<td>#1</td>\
				<td>#2</td>\
				<td>#3</td>\
				<td>#4</td>\
				<td>#5</td>\
				<td>#6</td>\
				<td>#7</td>\
				<td>\
					<a onclick="findInfo(#8)">查看</a>\
				</td>\
			</tr>';
			var item ="<tr>\
							<th>仪器编号</th>\
							<th>仪器名称</th>\
							<th>仪器负责人</th>\
							<th>仪器状态</th>\
							<th>开机预热时长</th>\
							<th>运行时间</th>\
							<th>运行状态</th>\
							<th>发布状态</th>\
							<th>操作</th>\
						</tr>";
			for(var i=0; i<rowsList.length; i++){
				var Status ="";
				var Status1 ="";
				switch(rowsList[i].runStatus)//仪器运行状态（0:开机，1:使用中，2:关机）
				{
				case 0:
					Status = "开机";
					break;
				case 1:
					Status = "使用中";
					break;
				case 2:
					Status = "关机";
					break;
				}
				switch(rowsList[i].insStatus)//仪器状态（正常、损坏、需更换耗材）
				{
				case 0:
					Status1 = "正常";
					break;
				case 1:
					Status1 = "损坏";
					break;
				case 2:
					Status1 = "需要更换耗材";
					break;
				}
				item += pattern.replace("#0", rowsList[i].number)
					 .replace("#1", rowsList[i].chineseName)
				     .replace("#2", rowsList[i].conUser.username)
				     .replace("#3", Status1)
				     .replace("#4", rowsList[i].bootUpTime)
				     .replace("#5", rowsList[i].serviceTime)
				     .replace("#6", Status)
				     .replace("#7", rowsList[i].iStatus)
				     .replace("#8", rowsList[i].id);
			}
			
			$("#yiqiorderList").html(item);
		},
		error : function(msg) {
			alert(JSON.stringify(data));
		}
	});
}
function findInfo(id){
	$(location).attr('href', 'lizisepuyi16-2?id='+ id + '');
}

